//公共响应类型
export interface ResponseData {
    code: number;
    message: string;
    ok: boolean;
}
//分类的类型
export interface CategoryObj {
    id: number;
    createTime: string;
    updateTime: string;
    name: string;
    Category1Id?:number
    Category2Id?:number
}
//最终类型
export interface CategoryResponseData extends ResponseData{
    data: CategoryObj[];
}


//属性值对象的ts类型
export interface AttrValue {
    id?: number
    valueName: string
    attrId?: number|string
    flag?:boolean
}
export type AttrValueList = AttrValue[]
//属性对象
export interface Attr {
    id?: number|string;
    attrName: string;
    categoryId?: number|string;
    categoryLevel: number;
    attrValueList:AttrValueList
}
//存储每一个属性对象的数组ts类型
export type AttrList = Attr[]
//属性接口返回的数据ts类型
export interface AttrResponseData extends ResponseData{
    data: AttrList;
}